<?php 
include_once('../base/wxCofig.php');
include_once('./wxjsapiPay.class.php');
$code=$_Post['code'];
$appid=$appId;
$appKey=$appScreat;
$wxPay = new WxpayService($appid,$appKey,$mchid,$mchKey);
echo $wxPay->GetOpenid();
?>